Fixes __new__() got an unexpected keyword argument 'format'
Author: Matthew Brett
Origin: upstream https://github.com/statsmodels/statsmodels/commit/
bd2985d781484c2a2ce47a3db107690bbe688acd
Forwarded: not-needed
Gbp-Pq: Name co2_dataset_load.patch
data = load()
# pandas <= 0.12.0 fails in the to_datetime regex on Python 3
index = pd.DatetimeIndex(start=data.data['date'][0].decode('utf-8'),
- periods=len(data.data), format='%Y%m%d',
- freq='W-SAT')
+ periods=len(data.data), freq='W-SAT')
dataset = pd.DataFrame(data.data['co2'], index=index, columns=['co2'])
#NOTE: this is how I got the missing values in co2.csv
#new_index = pd.DatetimeIndex(start='1958-3-29', end=index[-1],